package com.loong.rpc.register;

import java.util.HashMap;
import java.util.Map;

/**
 * 本地注册
 */
public class LocalRegister {

    private static final Map<String, Class<?>> map = new HashMap<>();

    public static void regist(String interfaceName, Class<?> implClazz) {
        map.put(interfaceName, implClazz);
    }

    public static Class<?> get(String interfaceName) {
        return map.get(interfaceName);
    }
}
